<div class="row row-cards row-deck">
  <div class="col-2">
    <div class="card">
      <div class="card-body">
        <div class="form-group">
          <label class="form-label">商品分类</label>
          <%= shop_categories_tree_in_active(@active) %>
        </div>
      </div>
    </div>
  </div>
  <div class="col-10">
    <div class="card">
      <table class="table table-hover table-outline table-vcenter text-nowrap card-table">
        <thead>
          <tr>
            <th>名字</th>
            <th>排序</th>
            <th>精华页面</th>
            <th class="text-center">
            </th>
          </tr>
        </thead>
        <tbody>
          <% @active_shop_categories.each do |active_shop_category| %>
          <tr>
            <td>
              <div><%= active_shop_category.shop_category.name %></div>
              <div class="small text-muted">
                <%= formattime(active_shop_category.created_at, unit: "day") %>
              </div>
            </td>
            <td>
              <div><%= active_shop_category.sort %></div>
            </td>
            <td>
              <div><%= active_shop_category.active.name %></div>
            </td>
            <td class="text-center">
              <div class="item-action dropdown">
                <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fe fe-more-vertical"></i></a>
                <div class="dropdown-menu dropdown-menu-right">
                  <a href="<%= edit_admin_active_active_shop_category_path(@active, active_shop_category) %>" class="dropdown-item"><i class="dropdown-icon fe fe-tag"></i> 修改 </a>
                  <%= link_to admin_active_active_shop_category_path(@active, active_shop_category), method: :delete, class: 'dropdown-item' do %>
                    <i class="dropdown-icon fe fe-edit-2"></i> 删除 
                  <% end %>
                </div>
              </div>
            </td>
          </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  </div>
</div>